<?php
class LoginAction extends Action {

   protected $login;

   protected $passwd;

   public function execute() {
      return $this->login=='Tesla' && $this->passwd=='123' ? 'success' : 'fail';
   }
}
?>